package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.entity.Employee;

import javax.servlet.http.HttpSession;

/**
 * @author Tang
 * @date 2023/4/11
 */
public interface EmployeeService extends IService<Employee> {

    /**
     * 新增员工
     * @param employee
     */
    boolean addEmp(Employee employee, HttpSession session);

    /**
     * 员工分页
     * @param page
     * @param pageSize
     * @param name
     * @return
     */
    Page<Employee> findPage(Integer page, Integer pageSize, String name);
}
